/*
    This file is part of LaTascaDeXela Tactica for JavaCup 2009 (http://javacup.javahispano.org)
    Copyright (C) 2009  Alejandro Guerra Cabrera

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package org.javahispano.javacup.tacticas_aceptadas.xela.es.latascadexela.javacup;

import java.awt.Color;

import org.javahispano.javacup.modelo.EstiloUniforme;
import org.javahispano.javacup.modelo.JugadorDetalle;
import org.javahispano.javacup.modelo.Posicion;
import org.javahispano.javacup.modelo.TacticaDetalle;

public class TacticaLaTascaDeXelaDetalle implements TacticaDetalle {
 
    public String getNombre() {
        return "LaTascaDeXela";
    }

    public String getPais() {
        return "España";
    }

    public String getEntrenador() {
        return "Xela";
    }

    public Color getColorCamiseta() {
        return new Color(255, 255, 255);
    }

    public Color getColorPantalon() {
        return new Color(255, 102, 0);
    }

    public Color getColorFranja() {
        return new Color(102, 102, 255);
    }

    public Color getColorCalcetas() {
        return new Color(102, 102, 255);
    }

    public Color getColorPortero() {
        return new Color(255, 102, 0        );
    }

    public EstiloUniforme getEstilo() {
        return EstiloUniforme.FRANJA_HORIZONTAL;
    }

    public Color getColorCamiseta2() {
        return new Color(102, 102, 255);
    }

    public Color getColorPantalon2() {
        return new Color(0, 0, 0);
    }

    public Color getColorFranja2() {
        return new Color(255, 102, 0);
    }

    public Color getColorCalcetas2() {
        return new Color(0, 0, 0);
    }

    public Color getColorPortero2() {
        return new Color(204, 255, 0        );
    }

    public EstiloUniforme getEstilo2() {
        return EstiloUniforme.SIN_ESTILO;
    }

    class JugadorImpl implements JugadorDetalle {

        String nombre;
        int numero;
        Color piel, pelo;
        double velocidad, remate, presicion;
        boolean portero;
        Posicion posicion;

        public JugadorImpl(String nombre, int numero, Color piel, Color pelo,
                double velocidad, double remate, double presicion, boolean portero) {
            this.nombre=nombre;
            this.numero=numero;
            this.piel=piel;
            this.pelo=pelo;
            this.velocidad=velocidad;
            this.remate=remate;
            this.presicion=presicion;
            this.portero=portero;
        }

        public String getNombre() {
            return nombre;
        }

        public Color getColorPiel() {
            return piel;
        }

        public Color getColorPelo() {
            return pelo;
        }

        public int getNumero() {
            return numero;
        }

        public boolean esPortero() {
            return portero;
        }

        public double getVelocidad() {
            return velocidad;
        }

        public double getRemate() {
            return remate;
        }

        public double getPresicion() {
            return presicion;
        }

    }

    public JugadorDetalle[] getJugadores() {
        return new JugadorDetalle[]{
            new JugadorImpl("Hurley", 1, new Color(255,200,150), new Color(70,37,7),1.0d,0.76d,0.74d, true),
            new JugadorImpl("Michael Dawson", 2, new Color(60,30,4), new Color(0,0,0),1.0d,0.5d,0.5d, false),
            new JugadorImpl("John Locke", 3, new Color(233,170,113), new Color(233,170,113),1.0d,0.51d,0.5d, false),
            new JugadorImpl("Desmon Hume", 4, new Color(209,154,105), new Color(64,27,7),1.0d,0.49d,0.5d, false),
            new JugadorImpl("Jack Shephard", 5, new Color(221,177,136), new Color(0,0,0),1.0d,0.25d,1.0d, false),
            new JugadorImpl("James Sawyer", 6, new Color(194,140,91), new Color(153,153,0),1.0d,0.25d,1.0d, false),
            new JugadorImpl("Jin Kwon", 7, new Color(254,245,164), new Color(0,0,0),1.0d,0.75d,1.0d, false),
            new JugadorImpl("Richard Alpert", 8, new Color(176,115,59), new Color(0,0,0),1.0d,0.75d,1.0d, false),
            new JugadorImpl("Charlie Pace", 9, new Color(249,216,186), new Color(204,204,0),1.0d,1.0d,1.0d, false),
            new JugadorImpl("Jacob", 10, new Color(199,136,79), new Color(204,204,0),1.0d,1.0d,1.0d, false),
            new JugadorImpl("Daniel Faraday", 11, new Color(255,214,179), new Color(0,0,0),1.0d,1.0d,1.0d, false)
        };
    }
    
}
